﻿using System.ComponentModel.DataAnnotations;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Admin.Core.Entities;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using ZhonTai.Industry.Services.ProductionLine.Dto.Output;
using ZhonTai.Industry.Services.ProductionLine.Dto.Input;

namespace ZhonTai.Industry.Services.ProductionLine
{
    /// <summary>
    /// 产线配置服务
    /// </summary>
    public interface IProductionLineService
    {
        /// <summary>
        /// 查询
        /// </summary>
        Task<ProductionLineGetOutput> GetAsync(long id);

        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageOutput<ProductionLineGetPageOutput>> GetPageAsync(PageInput<ProductionLineGetPageInput> input);

        /// <summary>
        /// 列表查询
        /// </summary>
        Task<IEnumerable<ProductionLineGetListOutput>> GetListAsync(ProductionLineGetListInput input);

        /// <summary>
        /// 新增
        /// </summary>
        Task<long> AddAsync(ProductionLineAddInput input);

        /// <summary>
        /// 编辑
        /// </summary>
        Task UpdateAsync(ProductionLineUpdateInput input);

        /// <summary>
        /// 删除
        /// </summary>
        Task<bool> DeleteAsync(long id);

        /// <summary>
        /// 软删除
        /// </summary>
        Task<bool> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        Task<bool> BatchSoftDeleteAsync(long[] ids);
    }
}